package cn.zjyj.module.zjyj.controller.admin.deviceinstance.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.zjyj.framework.common.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.zjyj.framework.common.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备实例分页 Request VO")
@Data
public class DeviceInstancePageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "设备id", example = "31789")
    private Long deviceId;

    @Schema(description = "设备编码")
    private String code;

    @Schema(description = "采购时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] procurementTime;

    @Schema(description = "设备拥有者id", example = "8195")
    private Long ownerId;

    @Schema(description = "标签")
    private String tag;

    @Schema(description = "投入时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] usageTime;

    @Schema(description = "单元id", example = "17055")
    private Long unitId;

    @Schema(description = "部门id", example = "5976")
    private Long departmentId;

}